<html xmlns:th="http://www.thymeleaf.org">
<div th:fragment="usermanagepaging">
	<div class="bgc-w box box-primary">
		<!--盒子头-->
		<div class="box-header">
			<h3 class="box-title">
				<a href="useredit" class="label label-success" style="padding: 5px;">
					<span class="glyphicon glyphicon-plus"></span> 新增
				</a>
			</h3>
			<div class="box-tools">
				<div class="input-group" style="width: 150px;">
					<input type="text" class="form-control input-sm usersearch"
						placeholder="查找..." />
					<div class="input-group-btn">
						<a class="btn btn-sm btn-default"><span class="glyphicon glyphicon-search usersearchgo"></span></a>
					</div>
				</div>
			</div>
		</div>
		<!--盒子身体-->
		<div class="box-body no-padding">
			<div class="table-responsive">
				<table class="table table-hover table-striped">
					<tr>

						<th scope="col">头像</th>
						<th scope="col">部门</th>
						<th scope="col">真实姓名</th>
						<th scope="col">用户名</th>
						<th scope="col">角色</th>
						<th scope="col">电话</th>
						<th scope="col">工资</th>
						<th scope="col">操作</th>
					</tr>
						<tr th:each="user:${users}">
							<td>
							<img src="images/handsome.jpg" class="img-circle"
								style="width: 25px; height: 25px;" />
							</td>
							<td><span th:text="${user.deptId}"></span></td>
							<td><span th:text="${user.realName}"></span></td>
							<td><span th:text="${user.userName}"></span></td>
							<td><span th:text="${user.positionId}"></span></td>
							<td><span th:text="${user.userTel}"></span></td>
							<td><span th:text="${user.salary}"></span></td>
							<td><a th:href="@{/a/user/useredit(userid=${user.userId})}" class="label xiugai"><span
									class="glyphicon glyphicon-edit"></span> 修改</a> <a
								onclick="{return confirm('删除该记录将不能恢复，确定删除吗？');};"
								th:href="@{deleteuser(userid=${user.userId})}" class="label shanchu"><span
									class="glyphicon glyphicon-remove"></span> 删除</a></td>
						</tr>
				</table>
			</div>
		</div>
		<!--盒子尾-->
		<div th:replace="common/paging :: paging"></div>
	</div>
</div>